package com.xxxx.server.controller;



import com.xxxx.server.mapper.SalaryMapper;
import com.xxxx.server.pojo.RespBean;
import com.xxxx.server.pojo.Salary;
import com.xxxx.server.service.impl.SalaryServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhoubin
 */
@RestController
@RequestMapping("/salary/sob")
public class SalaryController {


    @Resource
    private SalaryMapper salaryMapper;


    @ApiOperation(value = "查询所有员工套账")
    @GetMapping
    public List<Salary> selectAll(){
        List<Salary> salaries = salaryMapper.selectList(null);
        return salaries;
    }


}
